package com.hzit.manager.controller;

import com.hzit.common.R;
import com.hzit.manager.service.IItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/manager/item")
public class ItemController {
	@Autowired
	private IItemService iItemService;
	@GetMapping("/list")
	public R list(){
		return R.ok().put("list",iItemService.list());
	}
}
